admin/pin: Enforce that index is a number
authorColin Walters <walters@verbum.org>
Wed, 19 Aug 2020 13:09:46 +0000 (13:09 +0000)
committerColin Walters <walters@verbum.org>
Wed, 19 Aug 2020 13:11:55 +0000 (13:11 +0000)
commit22a445c18995e642d63152d36e924e4d85764b99
tree020ed27874db64aafdc4fd79f136cf7ee358a555
parentfa9942c7ad52cecdcc7b01627448dc998ec5439b
admin/pin: Enforce that index is a number

Validate that we're parsing a number; we want to guard
against typos.

Closes: https://github.com/ostreedev/ostree/issues/2171
src/ostree/ot-admin-builtin-pin.c
tests/test-admin-deploy-2.sh